package student.aistar.dao2.impl;

import student.aistar.dao2.IVideoDao;
import student.aistar.model.pojo.Video;
import student.aistar.util.reflect.JdbcNBUtil;

import java.util.List;

public class VideoDaoImpl implements IVideoDao {
    @Override
    public List<Video> findByUserId(Integer userId) {
        return JdbcNBUtil.queryList(Video.class, "select * from t_video where user_id=?", userId);
    }
}
